package design.pattern.Builder.copy;

public class ManBuilder implements PersonBuilder {
    @Override
    public String createFoot() {
       return "创建男人的脚";
    }

    @Override
    public String createHead() {
        return "创建男人的头";
    }

    @Override
    public String createBody() {
        return "创建男人的身体";

    }

    @Override
    public Person createPerson() {
        Man man = new Man();
        man.setBody(createBody());
        man.setFoot(createFoot());
        man.setHead(createHead());
        return man;
    }
}
